package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.po.EmployeePO;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    EmployeePO login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 新增员工
     * @param employeeDTO
     * @return
     */
    Boolean newEmployee(EmployeeDTO employeeDTO);

    /**
     * 按条件分页查询员工
     * @param source
     * @return
     */
    PageResult pageQuery(EmployeePageQueryDTO source);

    /**
     * 启用/禁用用户
     * @param status
     * @param id
     */
    Boolean startOrStop(Integer status, Long id);

    /**
     * 根据id查询用户信息
     * @param id
     * @return
     */
    EmployeeDTO getById(Long id);

    /**
     * 更新员工信息
     * @param source
     * @return
     */
    Boolean update(EmployeeDTO source);
}
